import request from '@/network/service_model.js'
import requestsso from '@/network/auth_sso.js'
export default {

    getList(pageNum,pageSize,search){
        return requestsso({
            url: '/order/shop/getList',
            method:'get',
            params: {pageNum,pageSize,search}
        })
    },

    testList(search){
        return requestsso({
            url: '/order/shop/testList',
            method:'get',
            params: {search}
        })
    },

    buyGoods(id){
        return requestsso({
            url: '/order/shop/bugGoods',
            method:'get',
            params: {id}
        })
    },
    exportGoods(data){
        return requestsso({
            url: '/order/shop/exportGoods',
            method:'post',
            data: data,
            responseType: 'blob'
        })
    },

    wordGoods(){
        return requestsso({
            url: '/order/shop/wordGoods',
            method:'post',
            responseType: 'blob'
        })
    },

    addGoods(data){
        return requestsso({
            url: '/order/shop/addGoods',
            method:'post',
            data: data
        })
    }
}